import qs from 'qs'
import request from '@/utils/request'

interface User {
    phone: string;
    password: string;
}
export const login = (param: User) => {
  return request({
    method: 'POST',
    url: '/front/user/login',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    data: qs.stringify(param)
  })
}

export const getUserInfo = () => {
  return request({
    method: 'POST',
    url: '/front/user/getInfo'
  })
}
